<template>
	<view class="audit-list">
		<view v-if="list.length">
			<todoAudit @init="getCheckPendingContratList" v-for="item in list" :key="item.id" :audit="item">
			</todoAudit>
		</view>
		<Empty v-else></Empty>
	</view>
</template>

<script>
	import todoAudit from '@/components/todoAudit/index.vue'
	// import todoAudit from '@/components/contratList/index.vue'
	import {
		getCheckPendingContratList
	} from '@/api/app.js'
	import Empty from '@/components/empty/index.vue'
	export default {
		components: {
			todoAudit,
			Empty
		},
		data() {
			return {
				list: []
			}
		},
		onLoad() {
			this.getCheckPendingContratList()
		},
		methods: {
			async getCheckPendingContratList() {
				const res = await getCheckPendingContratList()
				this.list = res.data
			}
		}
	}
</script>

<style scoped lang="scss">
	.audit-list {
		padding: 20rpx;
	}
</style>